How to create a drive and share it?
How to create a drive and share it.
1. Create a folder in pc2 (hostname is sales-arjun-pc). Like public, sales, marketing
a. Select the folder which you want to share like public
b. Right click and properties>sharing tab> Click on share button>share
C. Now go to PC1 command prompt
Type below command
C:\User\Admin> net use p: \\ sales-arjun-pc\public
It will create a sales folder inside the PC1 computer like below.
If you want to create another drive, you can follow same steps
Again PC2’s folder drive create inside the PC1
This time we are going to create next drive marketing
Note: This time Change the drive name M: for marketing folder
C:\Users\Admin>net use M: \\sales-arjun-pc\marketing
Syntax: C:\>net use [drive name:] share pc name like pc2 and enter.
Creating sales drive s: in below
Type this command in command prompt: C:\Users\Admin>net use s: \\sales-arjun-pc\sales
We can create all drives (in PC2) in same time in PC1, follow below rules:
Share all drives from PC2.
Open notepad in PC1 and type below commands.
C:\Users\Admin>net use M: \\sales-arjun-pc\marketing
C:\Users\Admin>net use S: \\sales-arjun-pc\sales
C:\Users\Admin>net use P: \\sales-arjun-pc\public
Save it in myDrives.bat extension
Now double click that file, it will automatically create all drives in your pc1. Like the image below.
Comments